package com.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mapper.voipmapper.TaskRewardMapper;
import com.base.po.voip.TaskReward;
import com.base.service.TaskRewardService;

@Service("taskRewardService")
public class TaskRewardServiceImpl implements TaskRewardService {

	@Autowired
	private TaskRewardMapper taskRewardMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return taskRewardMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(TaskReward record) {
		return taskRewardMapper.insert(record);
	}

	@Override
	public int insertSelective(TaskReward record) {
		return taskRewardMapper.insertSelective(record);
	}

	@Override
	public TaskReward selectByPrimaryKey(Integer id) {
		return taskRewardMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TaskReward record) {
		return taskRewardMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TaskReward record) {
		return taskRewardMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByType(String parentid, String subid, String createtime, Integer type) {
		return taskRewardMapper.countByType(parentid, subid, createtime, type);
	}
}
